from pydantic import BaseModel

class ErrorBase(BaseModel):
    code: int
    msg: str = ""

# 找不到路径
ERROR_NOT_FOUND = ErrorBase(code=404, msg="api 路径错误")
# 参数错误
ERROR_PARAMETER_ERROR = ErrorBase(code=400, msg="参数错误")


# 用户相关
ERROR_USER_EXIST = ErrorBase(code=5004, msg="用户已存在")